{template nheader.html}
<script type="text/javascript">
</script>

<div class="page-bar">
    <ul class="page-breadcrumb mylink">
        {$menu.link}
    </ul>
    <ul class="page-breadcrumb myname">
        {$menu.name}
    </ul>
    <div class="page-toolbar">
        <div class="btn-group pull-right">
            <button type="button" class="btn green btn-sm btn-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> {fc_lang('操作菜单')}
                <i class="fa fa-angle-down"></i>
            </button>
            <ul class="dropdown-menu pull-right" role="menu">
                {loop $menu.quick $t}
                <li>
                    <a href="{$t.url}">{$t.icon} {$t.name}</a>
                </li>
                {/loop}
                <li class="divider"> </li>
                <li>
                    <a href="javascript:window.location.reload();">
                        <i class="icon-refresh"></i> {fc_lang('刷新页面')}</a>
                </li>
            </ul>
        </div>
    </div>
</div>

<div class="mytopsearch">
    <form class="row" method="post" action="" name="searchform" id="searchform">
        <input name="search" id="search" type="hidden" value="1" />
        <div class="col-md-12">
        	<label>
                <select class="form-control" name="group">
                    <option value="-"> -- </option> 
                    {loop $group $i $t}
                    <option value="{$i}" {if $param.group!='-' && $param.group==$i}selected{/if}> {$t.name} </option>
                    {/loop}
                </select>
            </label>
            <label>
                <select name="data[field]" class="form-control">
                    {loop $field $t}
                    {if $t.ismain && $t.fieldname != 'inputtime'}
                    <option value="{$t.fieldname}" {if $param.field==$t.fieldname}selected{/if}>{$t.name}</option>
                    {/if}
                    {/loop}
                    <option value="nickname" {if $param.field=='nickname'}selected{/if}>微信昵称</option>
                </select>
            </label>
            <label><i class="fa fa-caret-right"></i></label>
            <label style="padding-right: 20px;"><input type="text" class="form-control" placeholder="{fc_lang('多个Id可以用“,”分隔')}" value="{$param['keyword']}" name="data[keyword]" /></label>

            <label>关注/取消时间 ：</label>
            <label>{dr_field_input('start', 'Date', array('option'=>array('format'=>'Y-m-d','width'=>'100')), (int)$param.start)}</label>
            <label><i class="fa fa-minus"></i></label>
            <label style="margin-right:10px">{dr_field_input('end', 'Date', array('option'=>array('format'=>'Y-m-d','width'=>'100')), (int)$param.end)}</label>
            <label><button type="submit" class="btn green btn-sm" name="submit" > <i class="fa fa-search"></i> {fc_lang('搜索')}</button></label>
        </div>
    </form>
</div>

<style>
.table>tbody>tr>td {
    vertical-align: middle;
}
</style>

<div class="portlet light bordered">
    <div class="portlet-body">
        <div class="table-scrollable v3table">
            <form action="" method="post" name="myform" id="myform">
                <input name="action" id="action" value="del" type="hidden">
                <table class="table">
                    <thead>
                    <tr>
                        <th width="20" align="right"></th>
                        <th width="60">头像</th>
                        <th>昵称</th>
                        <th>绑定会员</th>
                        <th>粉丝组</th>
                        <th>关注/取消时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    {loop $list $t}
                    <tr>
                        <td align="right"><input name="ids[]" type="checkbox" class="dr_select toggle md-check" value="{$t['openid']}" /></td>
                        <td><img width="50" height="50" src="{$t.headimgurl}"></td>
                        <td>{dr_deal_emoji($t.nickname)}</td>
                        <td>{if $t.uid}<a href="javascript:;" onclick="dr_dialog_member('{$t.uid}')" class="badge badge-success"> {$t.username} </a>{else}<span class="badge badge-warning"> 未绑定 </span>{/if}</td>
                        <td>{$group[$t.groupid]['name']}</td>
                        <td>{dr_date($t.subscribe_time)}</td>
                    </tr>
                    {/loop}
                    <tr>
                        <th width="20" align="right" style="border:none;padding-top:15px;"><input name="dr_select" class="toggle md-check" id="dr_select" type="checkbox" onClick="dr_selected()" />&nbsp;</th>
                        <td colspan="99" align="left" style="border:none">
                            <label><button data-toggle="confirmation" id="dr_confirm_set_all" data-original-title="{fc_lang('您确定要这样操作吗？')}" type="button" class="btn red btn-sm" name="option"> <i class="fa fa-trash"></i> 删除 </button></label>
                            <label><button data-toggle="confirmation" id="dr_confirm_order" data-original-title="{fc_lang('您确定要这样操作吗？')}" type="button" class="btn blue btn-sm" name="option"> <i class="fa fa-edit"></i> 批量设置粉丝组</button></label>
                            <label>
                                <select class="form-control" name="gid">
                                    {loop $group $i $t}
                                    <option value="{$i}"> {$t.name} </option>
                                    {/loop}
                                </select>
                            </label>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </form>
            <div id="pages"><a>{fc_lang('共%s条', $total)}</a>{$pages}</div>
        </div>
    </div>
</div>
{template nfooter.html}